package com.github.bryxtest;

import com.github.bryx.workflow.domain.WorkflowDef;
import com.github.bryx.workflow.domain.WorkflowDefProcessConfig;
import com.github.bryx.workflow.domain.WorkflowInstance;
import com.github.bryx.workflow.domain.WorkflowTaskInstance;
import com.github.bryx.workflow.domain.process.runtime.TaskObject;
import com.github.bryx.workflow.domain.process.runtime.TaskObjectAssignee;
import com.github.bryx.workflow.event.WorkflowEvent;
import com.github.bryx.workflow.handler.Aware;
import com.github.bryx.workflow.handler.WorkflowInstanceAware;
import com.github.bryx.workflow.service.WorkflowRuntimeService;
import com.github.bryx.workflow.util.WorkflowEngineUtil;
import com.google.common.collect.Lists;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author jameswu
 * @Date 2021/6/11
 **/
@Component
@Aware(processKey = "unittest-applyleave")
public class ApplyLeaveHandler implements WorkflowInstanceAware {

    @Autowired
    WorkflowRuntimeService workflowRuntimeService;


    @Override
    public void handleEvent(String processDefType, WorkflowEvent event) {

    }

    @Override
    public List<TaskObjectAssignee> userTaskAssign(String processDefKey, WorkflowInstance workflowInstance, WorkflowTaskInstance executionTaskInstance, WorkflowDefProcessConfig.UserTaskConfig userTaskConfig) {
        return null;
    }


}
